package com.hxs.colorfultest2.dao;

import com.hxs.colorfultest2.domain.Theme;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ThemeDao {

    /*添加主题*/
    void addTheme(Theme Theme);

    List<Theme> getAllTheme();

    /*更新保存主题*/
    void updateTheme(Theme theme);

    /*获得主题的总记录数*/
    int getThemeByTotal();

    /*获得分页主题*/
    List<Theme> getThemeByPage(Map<String ,Object> paramMap);

    /*检验主题名是否重复*/
    boolean checkName(String name);

    /*删除主题*/
    boolean deleteTheme(String  name);

    /*根据主题名查找主题*/
    Theme getThemeByName(String name);

    /*根据主题ID查找主题*/
    Theme getThemeByID(int id);

    /*hu获取删除的主题*/
    List<Theme> getDeleteTheme();

    /*根据厂商获取主题*/
    List<Theme>getThemeByFactory(String name);
}
